﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<System.Collections.Generic.KeyValuePair<Int32, String>>" %>
<div id="in" name="in" style="background-color: #F7F7F7; border: 1px solid #E8E8E8; margin-top: 3px; margin-left: <%= Model.Key %>em;">
    <% int id = Convert.ToInt32(Url.RequestContext.RouteData.Values["id"]);
       if (id > 0) Html.BeginForm();
       else Html.BeginForm(new { id = Wild2.Models.Topic.Topic.GetTopicIDFromMID(Math.Abs(id)) });
       %>
    <div style="margin: 3px 9px 3px 3px;">
        <%= Html.TextArea("message", HttpUtility.HtmlEncode(Model.Value), new { rows = "3", cols = "10", style = "width: 100%; padding-bottom: 3px; padding-top: 3px;", placeholder = "Ваш комментарий" })%>
    </div>
    <div style="margin: 3px 9px 3px 3px;">
        <input style="background-color: #7394BC; border-top: 1px solid #7E8FA9; border-left: 1px solid #7E8FA9;
            border-bottom: 1px solid #4C6F97; border-right: 1px solid #4C6F97; color: #FFFFFF"
            type="submit" value="Отправить" />
    </div>
    <% Html.EndForm(); %>
</div>
